<template>
	<view class="PharmacyRecordsDetail">
		<view v-for="(item,index) in list" :key='index'>
			<text>{{item.format}}</text>
			<text>{{item.info}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		onLoad(o) {
			this.$u.post('/appuser/prescrip_info',{prescrip_id:o.id}).then(res=>{
				this.list = res.data.json
			})
		}
	}
</script>

<style lang="scss">
	.PharmacyRecordsDetail{
		width: 95%;
		margin: 20rpx auto;
		border-radius: 10rpx;
		overflow: hidden;
		>view{
			padding: 30rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background-color: #FFFFFF;
			border-bottom: 1px solid rgba(0,0,0,.05);
		}
	}
</style>
